3.2.81 \(\int (a+b \log (c x^n))^p (d+e \log (f x^r)) \, dx\) [181]

3.2.81.1 Optimal result
3.2.81.2 Mathematica [A] (verified)
3.2.81.3 Rubi [A] (verified)
3.2.81.4 Maple [F]
3.2.81.5 Fricas [A] (verification not implemented)
3.2.81.6 Sympy [F]
3.2.81.7 Maxima [F(-2)]
3.2.81.8 Giac [F]
3.2.81.9 Mupad [F(-1)]

3.2.81.1 Optimal result

Integrand size = 23, antiderivative size = 271 \[ \int \left (a+b \log \left (c x^n\right )\right )^p \left (d+e \log \left (f x^r\right )\right ) \, dx=-e e^{-\frac {a}{b n}} r x \left (c x^n\right )^{-1/n} \Gamma \left (2+p,-\frac {a}{b n}-\frac {\log \left (c x^n\right )}{n}\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p}-\frac {e e^{-\frac {a}{b n}} r x \left (c x^n\right )^{-1/n} \Gamma \left (1+p,-\frac {a}{b n}-\frac {\log \left (c x^n\right )}{n}\right ) \left (a+b \log \left (c x^n\right )\right )^{1+p} \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p}}{b n}+e^{-\frac {a}{b n}} x \left (c x^n\right )^{-1/n} \Gamma \left (1+p,-\frac {a+b \log \left (c x^n\right )}{b n}\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \left (d+e \log \left (f x^r\right )\right ) \]

output
-e*r*x*GAMMA(2+p,-a/b/n-ln(c*x^n)/n)*(a+b*ln(c*x^n))^p/exp(a/b/n)/((c*x^n) 
^(1/n))/(((-a-b*ln(c*x^n))/b/n)^p)-e*r*x*GAMMA(p+1,-a/b/n-ln(c*x^n)/n)*(a+ 
b*ln(c*x^n))^(p+1)/b/exp(a/b/n)/n/((c*x^n)^(1/n))/(((-a-b*ln(c*x^n))/b/n)^ 
p)+x*GAMMA(p+1,(-a-b*ln(c*x^n))/b/n)*(a+b*ln(c*x^n))^p*(d+e*ln(f*x^r))/exp 
(a/b/n)/((c*x^n)^(1/n))/(((-a-b*ln(c*x^n))/b/n)^p)
 
3.2.81.2 Mathematica [A] (verified)

Time = 0.22 (sec) , antiderivative size = 146, normalized size of antiderivative = 0.54 \[ \int \left (a+b \log \left (c x^n\right )\right )^p \left (d+e \log \left (f x^r\right )\right ) \, dx=-e^{-\frac {a}{b n}} x \left (c x^n\right )^{-1/n} \left (a+b \log \left (c x^n\right )\right )^{-1+p} \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{1-p} \left (-b e n r \Gamma \left (2+p,-\frac {a+b \log \left (c x^n\right )}{b n}\right )+\Gamma \left (1+p,-\frac {a+b \log \left (c x^n\right )}{b n}\right ) \left (b d n-a e r-b e r \log \left (c x^n\right )+b e n \log \left (f x^r\right )\right )\right ) \]

input
Integrate[(a + b*Log[c*x^n])^p*(d + e*Log[f*x^r]),x]
 
output
-((x*(a + b*Log[c*x^n])^(-1 + p)*(-((a + b*Log[c*x^n])/(b*n)))^(1 - p)*(-( 
b*e*n*r*Gamma[2 + p, -((a + b*Log[c*x^n])/(b*n))]) + Gamma[1 + p, -((a + b 
*Log[c*x^n])/(b*n))]*(b*d*n - a*e*r - b*e*r*Log[c*x^n] + b*e*n*Log[f*x^r]) 
))/(E^(a/(b*n))*(c*x^n)^n^(-1)))
 
3.2.81.3 Rubi [A] (verified)

Time = 0.77 (sec) , antiderivative size = 226, normalized size of antiderivative = 0.83, number of steps used = 8, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.304, Rules used = {2808, 27, 34, 2033, 3039, 7281, 7111}

Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.

\(\displaystyle \int \left (d+e \log \left (f x^r\right )\right ) \left (a+b \log \left (c x^n\right )\right )^p \, dx\)

\(\Big \downarrow \) 2808

\(\displaystyle x e^{-\frac {a}{b n}} \left (c x^n\right )^{-1/n} \left (d+e \log \left (f x^r\right )\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \Gamma \left (p+1,-\frac {a+b \log \left (c x^n\right )}{b n}\right )-e r \int e^{-\frac {a}{b n}} \left (c x^n\right )^{-1/n} \Gamma \left (p+1,-\frac {a+b \log \left (c x^n\right )}{b n}\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p}dx\)

\(\Big \downarrow \) 27

\(\displaystyle x e^{-\frac {a}{b n}} \left (c x^n\right )^{-1/n} \left (d+e \log \left (f x^r\right )\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \Gamma \left (p+1,-\frac {a+b \log \left (c x^n\right )}{b n}\right )-e r e^{-\frac {a}{b n}} \int \left (c x^n\right )^{-1/n} \Gamma \left (p+1,-\frac {a+b \log \left (c x^n\right )}{b n}\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p}dx\)

\(\Big \downarrow \) 34

\(\displaystyle x e^{-\frac {a}{b n}} \left (c x^n\right )^{-1/n} \left (d+e \log \left (f x^r\right )\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \Gamma \left (p+1,-\frac {a+b \log \left (c x^n\right )}{b n}\right )-e r x e^{-\frac {a}{b n}} \left (c x^n\right )^{-1/n} \int \frac {\Gamma \left (p+1,-\frac {a+b \log \left (c x^n\right )}{b n}\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p}}{x}dx\)

\(\Big \downarrow \) 2033

\(\displaystyle x e^{-\frac {a}{b n}} \left (c x^n\right )^{-1/n} \left (d+e \log \left (f x^r\right )\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \Gamma \left (p+1,-\frac {a+b \log \left (c x^n\right )}{b n}\right )-e r x e^{-\frac {a}{b n}} \left (c x^n\right )^{-1/n} \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \int \frac {\Gamma \left (p+1,-\frac {a+b \log \left (c x^n\right )}{b n}\right )}{x}dx\)

\(\Big \downarrow \) 3039

\(\displaystyle x e^{-\frac {a}{b n}} \left (c x^n\right )^{-1/n} \left (d+e \log \left (f x^r\right )\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \Gamma \left (p+1,-\frac {a+b \log \left (c x^n\right )}{b n}\right )-\frac {e r x e^{-\frac {a}{b n}} \left (c x^n\right )^{-1/n} \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \int \Gamma \left (p+1,-\frac {a+b \log \left (c x^n\right )}{b n}\right )d\log \left (c x^n\right )}{n}\)

\(\Big \downarrow \) 7281

\(\displaystyle e r x e^{-\frac {a}{b n}} \left (c x^n\right )^{-1/n} \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \int \Gamma \left (p+1,-\frac {a}{b n}-\frac {\log \left (c x^n\right )}{n}\right )d\left (-\frac {a}{b n}-\frac {\log \left (c x^n\right )}{n}\right )+x e^{-\frac {a}{b n}} \left (c x^n\right )^{-1/n} \left (d+e \log \left (f x^r\right )\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \Gamma \left (p+1,-\frac {a+b \log \left (c x^n\right )}{b n}\right )\)

\(\Big \downarrow \) 7111

\(\displaystyle x e^{-\frac {a}{b n}} \left (c x^n\right )^{-1/n} \left (d+e \log \left (f x^r\right )\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \Gamma \left (p+1,-\frac {a+b \log \left (c x^n\right )}{b n}\right )+e r x e^{-\frac {a}{b n}} \left (c x^n\right )^{-1/n} \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \left (\left (-\frac {a}{b n}-\frac {\log \left (c x^n\right )}{n}\right ) \Gamma \left (p+1,-\frac {a}{b n}-\frac {\log \left (c x^n\right )}{n}\right )-\Gamma \left (p+2,-\frac {a}{b n}-\frac {\log \left (c x^n\right )}{n}\right )\right )\)

input
Int[(a + b*Log[c*x^n])^p*(d + e*Log[f*x^r]),x]
 
output
(e*r*x*(a + b*Log[c*x^n])^p*(-Gamma[2 + p, -(a/(b*n)) - Log[c*x^n]/n] + Ga 
mma[1 + p, -(a/(b*n)) - Log[c*x^n]/n]*(-(a/(b*n)) - Log[c*x^n]/n)))/(E^(a/ 
(b*n))*(c*x^n)^n^(-1)*(-((a + b*Log[c*x^n])/(b*n)))^p) + (x*Gamma[1 + p, - 
((a + b*Log[c*x^n])/(b*n))]*(a + b*Log[c*x^n])^p*(d + e*Log[f*x^r]))/(E^(a 
/(b*n))*(c*x^n)^n^(-1)*(-((a + b*Log[c*x^n])/(b*n)))^p)
 

3.2.81.3.1 Defintions of rubi rules used

rule 27
Int[(a_)*(Fx_), x_Symbol] :> Simp[a   Int[Fx, x], x] /; FreeQ[a, x] &&  !Ma 
tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
 

rule 34
Int[(u_.)*((a_.)*(x_)^(m_))^(p_), x_Symbol] :> Simp[a^IntPart[p]*((a*x^m)^F 
racPart[p]/x^(m*FracPart[p]))   Int[u*x^(m*p), x], x] /; FreeQ[{a, m, p}, x 
] &&  !IntegerQ[p]
 

rule 2033
Int[(Fx_.)*((a_.)*(v_))^(m_)*((b_.)*(v_))^(n_), x_Symbol] :> Simp[a^(m + n) 
*((b*v)^n/(a*v)^n)   Int[v^(m + n)*Fx, x], x] /; FreeQ[{a, b, m, n}, x] && 
 !IntegerQ[m] &&  !IntegerQ[n] && IntegerQ[m + n]
 

rule 2808
Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*((d_.) + Log[(f_.)*(x_)^(r_ 
.)]*(e_.)), x_Symbol] :> With[{u = IntHide[(a + b*Log[c*x^n])^p, x]}, Simp[ 
(d + e*Log[f*x^r])   u, x] - Simp[e*r   Int[SimplifyIntegrand[u/x, x], x], 
x]] /; FreeQ[{a, b, c, d, e, f, n, p, r}, x]
 

rule 3039
Int[u_, x_Symbol] :> With[{lst = FunctionOfLog[Cancel[x*u], x]}, Simp[1/lst 
[[3]]   Subst[Int[lst[[1]], x], x, Log[lst[[2]]]], x] /;  !FalseQ[lst]] /; 
NonsumQ[u]
 

rule 7111
Int[Gamma[n_, (a_.) + (b_.)*(x_)], x_Symbol] :> Simp[(a + b*x)*(Gamma[n, a 
+ b*x]/b), x] - Simp[Gamma[n + 1, a + b*x]/b, x] /; FreeQ[{a, b, n}, x]
 

rule 7281
Int[u_, x_Symbol] :> With[{lst = FunctionOfLinear[u, x]}, Simp[1/lst[[3]] 
 Subst[Int[lst[[1]], x], x, lst[[2]] + lst[[3]]*x], x] /;  !FalseQ[lst]]
 
3.2.81.4 Maple [F]

\[\int {\left (a +b \ln \left (c \,x^{n}\right )\right )}^{p} \left (d +e \ln \left (f \,x^{r}\right )\right )d x\]

input
int((a+b*ln(c*x^n))^p*(d+e*ln(f*x^r)),x)
 
output
int((a+b*ln(c*x^n))^p*(d+e*ln(f*x^r)),x)
 
3.2.81.5 Fricas [A] (verification not implemented)

Time = 0.09 (sec) , antiderivative size = 131, normalized size of antiderivative = 0.48 \[ \int \left (a+b \log \left (c x^n\right )\right )^p \left (d+e \log \left (f x^r\right )\right ) \, dx=-\frac {{\left (b e r \log \left (c\right ) - b e n \log \left (f\right ) - b d n + {\left (b e n p + b e n + a e\right )} r\right )} e^{\left (-\frac {b n p \log \left (-\frac {1}{b n}\right ) + b \log \left (c\right ) + a}{b n}\right )} \Gamma \left (p + 1, -\frac {b n \log \left (x\right ) + b \log \left (c\right ) + a}{b n}\right ) - {\left (b e n r x \log \left (x\right ) + b e r x \log \left (c\right ) + a e r x\right )} {\left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )}^{p}}{b n} \]

input
integrate((a+b*log(c*x^n))^p*(d+e*log(f*x^r)),x, algorithm="fricas")
 
output
-((b*e*r*log(c) - b*e*n*log(f) - b*d*n + (b*e*n*p + b*e*n + a*e)*r)*e^(-(b 
*n*p*log(-1/(b*n)) + b*log(c) + a)/(b*n))*gamma(p + 1, -(b*n*log(x) + b*lo 
g(c) + a)/(b*n)) - (b*e*n*r*x*log(x) + b*e*r*x*log(c) + a*e*r*x)*(b*n*log( 
x) + b*log(c) + a)^p)/(b*n)
 
3.2.81.6 Sympy [F]

\[ \int \left (a+b \log \left (c x^n\right )\right )^p \left (d+e \log \left (f x^r\right )\right ) \, dx=\int \left (a + b \log {\left (c x^{n} \right )}\right )^{p} \left (d + e \log {\left (f x^{r} \right )}\right )\, dx \]

input
integrate((a+b*ln(c*x**n))**p*(d+e*ln(f*x**r)),x)
 
output
Integral((a + b*log(c*x**n))**p*(d + e*log(f*x**r)), x)
 
3.2.81.7 Maxima [F(-2)]

Exception generated. \[ \int \left (a+b \log \left (c x^n\right )\right )^p \left (d+e \log \left (f x^r\right )\right ) \, dx=\text {Exception raised: RuntimeError} \]

input
integrate((a+b*log(c*x^n))^p*(d+e*log(f*x^r)),x, algorithm="maxima")
 
output
Exception raised: RuntimeError >> ECL says: In function CAR, the value of 
the first argument is  0which is not of the expected type LIST
 
3.2.81.8 Giac [F]

\[ \int \left (a+b \log \left (c x^n\right )\right )^p \left (d+e \log \left (f x^r\right )\right ) \, dx=\int { {\left (e \log \left (f x^{r}\right ) + d\right )} {\left (b \log \left (c x^{n}\right ) + a\right )}^{p} \,d x } \]

input
integrate((a+b*log(c*x^n))^p*(d+e*log(f*x^r)),x, algorithm="giac")
 
output
integrate((e*log(f*x^r) + d)*(b*log(c*x^n) + a)^p, x)
 
3.2.81.9 Mupad [F(-1)]

Timed out. \[ \int \left (a+b \log \left (c x^n\right )\right )^p \left (d+e \log \left (f x^r\right )\right ) \, dx=\int \left (d+e\,\ln \left (f\,x^r\right )\right )\,{\left (a+b\,\ln \left (c\,x^n\right )\right )}^p \,d x \]

input
int((d + e*log(f*x^r))*(a + b*log(c*x^n))^p,x)
 
output
int((d + e*log(f*x^r))*(a + b*log(c*x^n))^p, x)